package org.framework.web.core.handleradapter;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.HashMap;
import java.util.Map;

@Data
public class ModeAndView {
    private String viewName;

    private Map<String, Object> map = new HashMap<>();

    private boolean flag = true;

    public ModeAndView() {
    }

    public ModeAndView(String viewName) {
        this.viewName = viewName;
    }

    public void addObject(String key, Object object){
        map.put(key, object);
    }
}
